﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfPartnerChoice.aspx.cs"
    Inherits="ownx.wfPartnerChoice" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Partner választás</title>
    <link href="ownx.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="js_scripts.js"></script>

    <script type="text/javascript" >
        function GridView_selectRow(row, EmailID) {
            var hdn = document.form1.obj_id;
            hdn.value = EmailID;

            if (lastRowSelected != row) {
                if (lastRowSelected != null) {
                    lastRowSelected.style.backgroundColor = originalColor;
                    lastRowSelected.style.color = 'E2DED6'
                }
                originalColor = row.style.backgroundColor
                row.style.backgroundColor = '333333'
                row.style.color = 'E2DED6'
                lastRowSelected = row;
            }
        }
    </script>

</head>
<body style="background-image: url(./images/bg.png); color: White; font-weight: bold;">
    <form id="form1" runat="server">
    <input id="obj_id" type="hidden" value="0" runat="server" name="obj_id" />
    <asp:Button ID="FalseButton" runat="server" Style="height: 0px; width: 0px; background-color: #111111;
        border-width: 0px;" Enabled="false" />
    <div style="width: 100%; height: 0px; position: absolute; left: 0px; top: 50%;" id="v_center">
        <div style="width: 100%; height: 600px; position: absolute; top: -300px; text-align: center;
            background-image: url(./images/alpha_bg.png); background-repeat: no-repeat; background-position: right;"
            id="dark">
            <div style="width: 950px; height: 600px; position: relative; margin: 0px auto 0px auto;">
                <div style="width: 170px; height: 600px; float: right; line-height: 5px;" id="buttons">
                    <asp:Button ID="bFilter" runat="server" Text="Szűrés" Style="margin-top: 5px;" CssClass="button" />
                    <br />
                    <br />
                    <br />
                    <br />
                    <asp:Button ID="bUj" runat="server" Text="Új" Style="" CssClass="button" OnClick="bUj_Click" />
                    <br />
                    <br />
                    <asp:Button ID="bSzerkeszt" runat="server" Text="Szerkeszt" Style="" CssClass="button"
                        OnClick="bSzerkeszt_Click" />
                    <br />
                    <br />
                    <asp:Button ID="bExport" runat="server" Text="Export" Style="" CssClass="button"
                        OnClick="bExport_Click" />
                    <br />
                    <br />
                    <asp:Button ID="bVissza" runat="server" Text="Vissza" Style="" CssClass="button"
                        OnClick="bVissza_Click" />
                </div>
                <div style="text-align: left;">
                    <table cellspacing="5">
                        <tr>
                            <td>
                                <asp:Label ID="lPRT_TIPUS_text" runat="server" Text="Típus:" Style=""></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlPRT_TIPUS" runat="server" Style="" CssClass="other_input">
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:Label ID="lPRT_TIPUS" runat="server" Text="-1" Visible="false" Style=""></asp:Label>
                            </td>
                        
                        
                            <td>
                                <asp:Label ID="lPRT_NEV_text" runat="server" Text="Név:" Style=""></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbPRT_NEV" runat="server" Style="" CssClass="editbox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lPRT_NEV" runat="server" Text="" Visible="false" Style=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lIRS_SZAM_text" runat="server" Text="Irsz:" Style=""></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbIRS_SZAM" runat="server" Style="" CssClass="editbox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lIRS_SZAM" runat="server" Text="" Visible="false" Style=""></asp:Label>
                            </td>
                        
                            <td>
                                <asp:Label ID="lCMB_VAROS_text" runat="server" Text="Város:" Style=""></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbCMB_VAROS" runat="server" Style="" CssClass="editbox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lCMB_VAROS" runat="server" Text="" Visible="false" Style=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Nem:" Style=""></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlPRT_NEM" runat="server" Style="" CssClass="other_input"
                                    AutoPostBack="True">
                                    <asp:ListItem Value="F">Férfi</asp:ListItem>
                                    <asp:ListItem Value="N">Nő</asp:ListItem>
                                    <asp:ListItem Value="%">-</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:Label ID="lPRT_NEM" runat="server" Text="" Visible="false" Style=""></asp:Label>
                            </td>
                        
                            <td colspan="3">
                                <asp:CheckBox ID="cbAla" runat="server" Text="Alárendelt dolgozók ügyfelei is" />
                            </td>
                        </tr>
                    </table>
                    <asp:Label ID="lAla" runat="server" Text="0" Visible="false" Style=""></asp:Label>
                    <br />
                    <asp:Label ID="lMessage" runat="server" Style="" Font-Names="Arial" ForeColor="#990000"></asp:Label>
                    <br />
                    <asp:Label ID="lFilter" runat="server" Style="" Font-Names="Arial" ForeColor="#990000"
                        Visible="False"></asp:Label>
                </div>
                <div style="width: 780px; height: 520px; float: left; text-align: left;" id="main1">
                    <div style="text-align: center;">
                        <div style="height: 350px; width: 767px; overflow: auto; margin: 5px auto 0px auto;">
                            <asp:GridView ID="gvPARTNER" runat="server" Style="width: 750px;  border-color: #dac6a6;
                                text-align: center; overflow: auto;" AutoGenerateColumns="False" CellPadding="4"
                                BorderStyle="None" CaptionAlign="Top" MouseOverColor="Black" GridLines="None"
                                PageSize="11" OnRowDataBound="gvPARTNER_RowDataBound" DataKeyNames="PRT_ID">
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <RowStyle VerticalAlign="Top" BorderWidth="0px" Wrap="True" />
                                <Columns>
                                    <asp:BoundField DataField="PRT_ID" HeaderText="Azonosító" ItemStyle-Width="1" ControlStyle-Width="1">
                                        <ControlStyle Width="0px" />
                                    </asp:BoundField>
                                    <asp:CommandField SelectText="Választ" ShowSelectButton="True" Visible="False" />
                                    <asp:BoundField DataField="TPS_MEGNEVEZES" HeaderText="Típus" />
                                    <asp:BoundField DataField="PRT_NEV" HeaderText="Név" />
                                    <asp:BoundField DataField="CMB_CIM" HeaderText="Cím" />
                                    <asp:BoundField DataField="TLF_SZAM" HeaderText="Telefon" />
                                    <asp:BoundField DataField="EML_MAILCIM" HeaderText="Email" />
                                    <asp:BoundField DataField="PRT_MODIFIED" HeaderText="Utolsó esemény" />
                                </Columns>
                                <PagerStyle BackColor="Black" ForeColor="Black" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="Black" Font-Bold="True" Height="30px" CssClass="header" />
                                <EditRowStyle BackColor="#999999" ForeColor="Black" />
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
